package com.quanyan.platform.model.resp;

import com.quanyan.place.entity.PlaceDubboProvider;

import java.io.Serializable;

/**
 * Created by slong.guo on 2017/3/9.
 */
public class GatherStadiumItemRecommend implements Serializable {
    private static final long serialVersionUID = -7150532724459685856L;

    //前缀：ST场馆 CL俱乐部 AC活动
    private String ST_stadiumName;
    private String ST_stadiumAddr;
    private String ST_stadiumUrl;
    private Double ST_longitude;
    private Double ST_latitude;
    private Integer ST_stadiumID;
    private Integer ST_rateScoreNum;
    private Integer ST_rateUserNum;
    private Integer ST_clubNum = 0;
    private Integer ST_matchNum = 0;
    private Integer ST_activityNum = 0;
    private Integer ST_distance;
    private Integer ST_vip;
    private Integer ST_follow;

    public GatherStadiumItemRecommend() {
    }

    public GatherStadiumItemRecommend(PlaceDubboProvider pdp) {
        this.ST_stadiumName = pdp.getName();
        this.ST_stadiumAddr = pdp.getAddress();
        this.ST_stadiumUrl = pdp.getBizPlaceUrl();
        this.ST_longitude = pdp.getLng();
        this.ST_latitude = pdp.getLat();
        this.ST_stadiumID = pdp.getPlaceId();

        if (pdp.getPlaceScore() != null && pdp.getCommentCount() != null) {
            this.ST_rateScoreNum = (int) (pdp.getPlaceScore() * pdp.getCommentCount());
            this.ST_rateUserNum = pdp.getCommentCount();
        } else {
            this.ST_rateScoreNum = 5;
            this.ST_rateUserNum = 1;
        }


        this.ST_clubNum = 0;
        this.ST_activityNum = 0;

        this.ST_matchNum = 0;

        this.ST_distance = (int) Math.round(pdp.getDistance());
        if (pdp.getIsVip() != null && pdp.getIsVip().equals((byte) 1)) {
            this.ST_vip = 1;
        } else {
            this.ST_vip = 0;
        }
        this.ST_follow = pdp.getIsCollect();

    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getST_stadiumName() {
        return ST_stadiumName;
    }

    public void setST_stadiumName(String ST_stadiumName) {
        this.ST_stadiumName = ST_stadiumName;
    }

    public String getST_stadiumAddr() {
        return ST_stadiumAddr;
    }

    public void setST_stadiumAddr(String ST_stadiumAddr) {
        this.ST_stadiumAddr = ST_stadiumAddr;
    }

    public String getST_stadiumUrl() {
        return ST_stadiumUrl;
    }

    public void setST_stadiumUrl(String ST_stadiumUrl) {
        this.ST_stadiumUrl = ST_stadiumUrl;
    }

    public Double getST_longitude() {
        return ST_longitude;
    }

    public void setST_longitude(Double ST_longitude) {
        this.ST_longitude = ST_longitude;
    }

    public Double getST_latitude() {
        return ST_latitude;
    }

    public void setST_latitude(Double ST_latitude) {
        this.ST_latitude = ST_latitude;
    }

    public Integer getST_stadiumID() {
        return ST_stadiumID;
    }

    public void setST_stadiumID(Integer ST_stadiumID) {
        this.ST_stadiumID = ST_stadiumID;
    }

    public Integer getST_rateScoreNum() {
        return ST_rateScoreNum;
    }

    public void setST_rateScoreNum(Integer ST_rateScoreNum) {
        this.ST_rateScoreNum = ST_rateScoreNum;
    }

    public Integer getST_rateUserNum() {
        return ST_rateUserNum;
    }

    public void setST_rateUserNum(Integer ST_rateUserNum) {
        this.ST_rateUserNum = ST_rateUserNum;
    }

    public Integer getST_clubNum() {
        return ST_clubNum;
    }

    public void setST_clubNum(Integer ST_clubNum) {
        if (ST_clubNum != null) {
            this.ST_clubNum = ST_clubNum;
        }
    }

    public Integer getST_matchNum() {
        return ST_matchNum;
    }

    public void setST_matchNum(Integer ST_matchNum) {
        if (ST_matchNum != null) {
            this.ST_matchNum = ST_matchNum;
        }
    }

    public Integer getST_activityNum() {
        return ST_activityNum;
    }

    public void setST_activityNum(Integer ST_activityNum) {
        if (ST_activityNum != null) {
            this.ST_activityNum = ST_activityNum;
        }
    }

    public Integer getST_distance() {
        return ST_distance;
    }

    public void setST_distance(Integer ST_distance) {
        this.ST_distance = ST_distance;
    }

    public Integer getST_vip() {
        return ST_vip;
    }

    public void setST_vip(Integer ST_vip) {
        this.ST_vip = ST_vip;
    }

    public Integer getST_follow() {
        return ST_follow;
    }

    public void setST_follow(Integer ST_follow) {
        this.ST_follow = ST_follow;
    }
}
